package com.nyp.remoter.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

@Entity
public class Cat extends BaseEntity{
	
	private String name;
	private boolean likesPurring;
	@ManyToMany(mappedBy="cats")
	private List<User> owners;
	@OneToMany(mappedBy="cat")
	private List<CatDogFight> fights;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isLikesPurring() {
		return likesPurring;
	}
	public void setLikesPurring(boolean likesPurring) {
		this.likesPurring = likesPurring;
	}
	public List<User> getOwners() {
		return owners;
	}
	public void setOwners(List<User> owners) {
		this.owners = owners;
	}
	public List<CatDogFight> getFights() {
		return fights;
	}
	public void setFights(List<CatDogFight> fights) {
		this.fights = fights;
	}

}
